import React, {FC} from "react";
import { Button, Result } from 'antd';
import {useNavigate} from "react-router-dom";
import {HOME_PATH} from "../../router";
import  styles from "./NoFind.module.scss"
const NoFind : FC =()=>{
  const nav = useNavigate();
    return(
        <Result className={styles.antResultSubtitle}
            status="404"
            title="404"
            subTitle="页面没找到"
            extra={<Button type="primary" onClick={()=>{nav(HOME_PATH)}} >返回首页</Button>}
        />
    );
}
export default NoFind;